/* 主容器样式 */
.profile-edit-container {
    padding: 40px 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 72px); /* 减去导航条高度 */
}

.profile-edit-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #ff6b6b, #48dbfb);
    color: white;
    padding: 20px 30px;
    border-bottom: none;
}

.card-header h2 {
    margin: 0;
    font-weight: 700;
}

.card-header i {
    margin-right: 10px;
}

.card-body {
    padding: 30px;
    background-color: white;
}

/* 分段标题样式 */
.section-header {
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.section-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2f3640;
    margin: 0;
}

.section-header:after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, #ff6b6b, #48dbfb);
}

/* 头像上传区域 */
.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-controls {
    text-align: center;
}

/* 兴趣标签区域 */
.interests-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-check-inline {
    margin-right: 15px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0.25em;
}

.form-check-label {
    margin-left: 5px;
    font-weight: 500;
}

/* 表单元素样式 */
.form-label {
    font-weight: 600;
    color: #2f3640;
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: #48dbfb;
    box-shadow: 0 0 0 0.25rem rgba(72, 219, 251, 0.25);
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn {
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #48dbfb;
    border-color: #48dbfb;
}

.btn-primary:hover {
    background-color: #1ac7f0;
    border-color: #1ac7f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(72, 219, 251, 0.3);
}

.btn-outline-secondary {
    border-color: #ddd;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #ddd;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .profile-edit-card {
        border-radius: 0;
    }

    .card-body {
        padding: 20px;
    }

    .interests-container {
        flex-direction: column;
        gap: 5px;
    }

    .form-actions {
        justify-content: center;
    }
}